<form  method="post" id="Equipment" action="${rc.getContextPath()}/manage/equipment/saveEquipment" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
    <div class="pageContent">
    <div class="pageFormContent" style="overflow-x:hidden;" >
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id"
                value="<#if (equipment.equipmentCode)??>${equipment.equipmentCode!''}</#if>">
        <fieldset>
        <dl style="height:80px;">
        	<dt><label><@label key='equipmentImage.C,colon'>设备图片：</@label></label></dt>
        	<dd><div class="upload-wrap">
					<div class="thumbnail">
						 <#if equipment?? && equipment.pictureAttachmentCode??>					    
							<img src="${rc.getContextPath()}/manage/common/showAttachement?attachmentCode=${equipment.pictureAttachmentCode!''}" data-width="157" data-height="133" height="80">
						</#if> 
					</div>
				</div>
			</dd>
		</dl>
        <dl>
            <dt><@label key='equipmentCode.C,colon'>设备编号：</@label></dt>
            <dd style="nowrap"><input type="text" name="equipmentCode"  size="22" type="text" maxlength="40" class="alphanumeric toUp" warn="<@label key='equipmentCode.C,alreadyExists'>设备编号已存在</@label>"
                              value="${equipment.equipmentCode!''}"
                              readonly="readonly"
                        />
            </dd>
        </dl>
          
        <dl>
            <dt><@label key='equipmentText.C,colon'>设备描述：</@label></dt>
            <dd><input type="text" name="equipmentText"  readonly="readonly" value="${equipment.equipmentText!''}"  />
            </dd>
        </dl>
        <dl>
            <dt><@label key="workUnitCode.C,colon">作业单元编号</@label></dt>
            <dd>
           		<input type="text" name="workUnitCode"  readonly="readonly" value="${equipment.workUnitCode!''}"  />    
            </dd>
        </dl>
        <dl>
            <dt><@label key='equipmentCategory.C,colon'>设备类别：</@label></dt>
            <dd>
                <input  readonly="readonly" name="categoryCode" value="${equipment.categoryCode!''}" type="text"  />
            </dd>
        </dl>
        <dl>
            <dt><@label key='equipmentStatus.C,colon'>设备状态：</@label></dt>
            <dd>
                <input name="statusCode"  readonly="readonly" value="${equipment.statusCode!''}" type="text"  />
            </dd>
        </dl>
        <dl>
            <dt><@label key='specModel.C,colon'>规格型号：</@label></dt>
            <dd><input  name="specModel" value="${equipment.specModel!''}"  readonly="readonly" type="text"  />
            </dd>
        </dl>
        <dl>
            <dt><@label key='purpose.C,colon'>设备用途</@label></dt>
            <dd><input name="purpose" value="${equipment.purpose!''}"  readonly="readonly" type="text" />
            </dd>
        </dl>
        <dl>
            <dt><@label key='location.C,colon'>设备位置：</@label></dt>
            <dd><input name="location"  value="${equipment.location!''}"  readonly="readonly" type="text" />
            </dd>
        </dl>
        <dl>
            <dt><@label key='manufacturer.C,colon'>生产厂家：</@label></dt>
            <dd><input name="manufacturer"  value="${equipment.manufacturer!''}"  readonly="readonly" type="text"/>
            </dd>
        </dl>
        <dl>
            <dt><@label key='usageYears.C,colon'>使用年限：</@label></dt>
            <dd><input name="usageYears"   readonly="readonly" value="${equipment.usageYears!''}" type="text" class="digits" min="0"/>
            </dd>
        </dl>
        <dl>
            <dt><@label key='purchaseDate.C,colon'>购入日期：</@label></dt>
            <dd><input type="text" name="purchaseDate"  disabled="disabled" value="${equipment.purchaseDate?string('yyyy-MM-dd')?if_exists}"  readonly  dateFmt="yyyy-MM-dd"/>
            </dd>
        </dl>
        <dl>
            <dt><@label key='useDepartment.C,colon'>使用部门：</@label></dt>
            <dd><input name="useDepartment"  readonly="readonly"  value="${equipment.useDepartment!''}"  type="text" />
            </dd>
        </dl>
        <dl>
            <dt><@label key='assetCode.C,colon'>固定资产编号：</@label></dt>
            <dd><input type="text" name="assetCode"  readonly="readonly" value="${equipment.assetCode!''}" class="alphanumeric toUp" /></dd>
        </dl>
         <dl>
            <dt><@label key='assetValue.C,colon'>资产值：</@label></dt>
            <dd><input type="text" name="assetValue"  readonly="readonly" value="${equipment.assetValue!''}" /></dd>
        </dl>
        <dl>
            <dt><@label key='assetLevel.C,colon'>资产等级：</@label></dt>
            <dd><input type="text" named"assetLevel"  readonly="readonly" value="${equipment.assetLevel!''}" /></dd>
        </dl>
        <dl style="width:600px;height:50px;">
            <dt><@label key='memo.C,colon'>备注：</@label></dt>
            <dd>
                <textarea style="width:435px;height:50px;" name="memo"  maxlength="200" readonly="readonly" value="${equipment.memo!''}" rows="4"><#if (equipment.memo)??>${equipment.memo!''}</#if></textarea>
            </dd>
        </dl>
        <dl>
            <dt>&nbsp;</dt>
            <dd>
                <label><input type="checkbox" name="lockFlag" value="1"

                    disabled="disabled"
                    <#if
                    (equipment.lockFlag)?? && (equipment.lockFlag == 1)>
                    checked="true"</#if>><@label key="lock.C">锁定</@label></label>
            </dd>
        </dl>
        <dl style="height:130px;border:1px solid #d9dfe5;" class="nowrap">
                <table class="table canopration border" style="width: 100%;" id="equipmentAttachMentTable">
                    <thead>
                        <tr>
                            <th width="100"><@label key='fileName.C'>文件名称</@label></th>
                            <th width="100"><@label key='fileSize.C'>文件大小(bytes)</@label></th>
                            <th width="50"><@label key="opera.C">操作</@label></th>
                        </tr>
                    </thead>
                    <tbody>
                        <#if equipmentAttachList?? && (equipmentAttachList?size gt 0)>
                            <#list equipmentAttachList as equipmentAttach>
                            <tr id="${equipmentAttach_index}">
                                <td>${equipmentAttach.fileName!''}<input type='hidden' name='equipmentAttachList[${equipmentAttach_index}].fileName' value="${equipmentAttach.fileName!''}"/></td>
                                <td>${((equipmentAttach.fileSize)/1024)?ceiling}KB<input type='hidden' name='equipmentAttachList[${equipmentAttach_index}].attachmentCode' value="${equipmentAttach.attachmentCode!''}"/></td>
                                <td>
                                    <a title="<@label key='download.B'>下载</@label>" target='dwzExport' class='btnAttach' href="${rc.getContextPath()}/manage/common/downloadAttachement?attachmentCode=${equipmentAttach.attachmentCode!''}&fileName=${equipmentAttach.fileName!''}"></a>
                                </td>
                            </tr>
                            </#list>
                        </#if>
                    </tbody>
                </table>
            </dl>
        </fieldset>
    </div>
    <#if equipment??>
        <#assign createInfo=equipment>
        <#include "/common/createInfo.html">
    </#if>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive"><div class="buttonContent"><button type="button" class="close"><@label key="close.B">关闭</@label></button></div></div>
            </li>
        </ul>
    </div>
    </div>
</form>